package com.caocao;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.web.WebApplicationInitializer;

@SpringBootApplication//启动必须的注解
@MapperScan("com.caocao.domain.mapper")
@EnableAutoConfiguration// 使用springboot的自动配置
public class AccountApplication extends SpringBootServletInitializer implements WebApplicationInitializer {

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(AccountApplication.class);
	}

	public static void main(String[] args) {
		SpringApplication.run(AccountApplication.class, args);
	}
}
